package com.ttl.common.usermenu;

import java.io.Serializable;

@SuppressWarnings({ "serial", "unchecked" })
public class Menu2Bean implements Serializable, Comparable  {
	private String 	id;
	private String	parent_id;
	private String	name;
	private String	location;
	
    public int compareTo(Object examObj){
        if (examObj != null) {
        	Menu2Bean a = (Menu2Bean)examObj;
            return name.compareTo(a.getName());
        }
        return 0;
    }	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getParent_id() {
		return parent_id;
	}
	public void setParent_id(String parentId) {
		parent_id = parentId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	
	
}
